package com.slliver.sentinelservice.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;


/**
 * springboot的全局异常处理
 */
@RestControllerAdvice
public class GloabExceptionHandler {

    @ExceptionHandler(Throwable.class)
    public String error(Throwable e){
        return "留给springboot处理异常，TODO";
    }
}
